/*
 * AnimationReader.h
 *
 *  Created on: 2009/02/06
 *      Author: Yongshik Cho
 */

#ifndef ANIMATIONREADER_H_
#define ANIMATIONREADER_H_

#include "../core/Prerequisites.h"
#include "../Tile.h"
#include <tinyxml.h>


class AnimationReader
{
public:
	static const std::string _NAME_TAG;
	static const std::string _TIME_TAG;
	static const std::string _FRAME_TAG;
	static const std::string _P1_X_TAG;
	static const std::string _P1_Y_TAG;
	static const std::string _P2_X_TAG;
	static const std::string _P2_Y_TAG;
	static const std::string _P3_X_TAG;
	static const std::string _P3_Y_TAG;
	static const std::string _P4_X_TAG;
	static const std::string _P4_Y_TAG;
	static const std::string _X_TAG;
	static const std::string _Y_TAG;
	static const std::string _WIDTH_TAG;
	static const std::string _HEIGHT_TAG;
	static const std::string _LOOPTYPE_TAG;
	static const std::string _LOOPCOUNT_TAG;
	static const std::string _LOOPCOUNT_VALUE;
	static const std::string _ENDLESS_VALUE;

public:
	static void parse(TiXmlElement* element, Tile* tile);
};

#endif /* ANIMATIONREADER_H_ */
